package com.ytjj.qmyx.supplychain.service;

import com.ytjj.qmyx.supplychain.mapper.RoleMenuRelationMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Slf4j
@Service
public class RoleMenuRelationService {
    @Resource
    private RoleMenuRelationMapper roleMenuRelationMapper;

    public List<String> queryApiCodeByRoleId(Integer roleId) {
        List<String> list = roleMenuRelationMapper.getApiCodeList(roleId);
        return list;
    }
}
